﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs"  Inherits="_Default" %>

<%@ Register Assembly="facebook.web" Namespace="facebook.web" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <table id="table1" cellpadding="0" cellspacing="10" width="100%">
        <tr>
            <td>
                <div>
                    <asp:Button ID="btnLogin"  runat="server" Text="Connect to Facebook" OnClick="btnLogin_Click" />
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <table id="table2" runat="server" visible="false" cellpadding="0" cellspacing="0" border="1" bordercolor="black" width="100%">
                    <tr>
                        <td colspan="2" height="30">
                            <asp:Label ID="lblGreetUser" Visible="False" runat="server" Text="User Greeting" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" height="30">
                            <div>
                                <asp:Label ID="lblGreet" Visible ="false" runat="server" Text="Hello" Width="112px"></asp:Label>
                                <asp:Label ID="lblUserName" Visible="false" runat="server" Width="184px"></asp:Label>
                            </div>
                        </td>
                   </tr>
                   <tr>
                        <td>
                            <cc1:UserProfile ID="UserProfile1" Visible="false" runat="server" />
                        </td>
                        <td align ="left" valign="top">
                            <asp:Label ID="lblFriendsList" Visible="False" runat="server" Text="User Friends List" Font-Bold="True"></asp:Label><br /><asp:ListBox ID="lstFriends" runat="server" Visible="false"></asp:ListBox>
                        </td>
                   </tr>                   
                </table>
             </td>
        </tr>
    </table>        
    </form>
</body>
</html>
